package area

import (
	v1 "Project/api/v1"
	"github.com/gin-gonic/gin"
)

type ShopRouter struct {}

func (s *ShopRouter) InitShopRouter(Router *gin.RouterGroup)  {
	shopRouter := Router.Group("api/area")
	shopApi    :=  v1.ApiGroupApp.AreaApiGroup.ShopApi
	{
		shopRouter.GET("list",shopApi.ShopList)  	                // 药店列表
		shopRouter.GET("user",shopApi.ShopUserList)  	           // 药店人员列表
		shopRouter.PUT("editor",shopApi.EditorShop)  	   		  // 修改药店信息
		shopRouter.DELETE("shop-action",shopApi.DelSHop)  		 // 删除药店
		shopRouter.PUT("shop-add",shopApi.CreateDrugShop)  		// 创建药店
		shopRouter.POST("shop-keeper",shopApi.CreateShopKeeper) // 创建店主
	}
}
